<template>
    <div id="app">
        <schart :canvasId="canvasId"
            :type="type"
            :width="width"
            :height="height"
            :data="data"
            :options="options"
        ></schart>
    </div>
</template>
<script>
import Schart from 'vue-schart';
export default {
    name:'HeadSize',
    data() {
        return {
            canvasId: 'myCanvas',
            type: 'line',
            width: 500,
            height: 400,
            data: [
                {name: '出生', value: 34.5},
                {name: '1个月', value: 32.9},
                {name: '2个月', value: 38.9},
                {name: '3个月', value: 40.5},
            ],
            options: {
                title: '头围曲线'
            }
        }
    },
    components:{
        Schart
    }
}
</script>

<style lang="scss">

</style>
